package com.UI
{
	import com.*;
	import com.Engine.*;
	import com.Packet.*;
	
	import flash.display.*;
	import flash.events.*;
	import flash.external.*;
	import flash.filters.*;
	import flash.geom.*;
	import flash.net.*;
	import flash.system.*;
	import flash.text.*;
	import flash.ui.*;
	import flash.utils.*;
	
	import gs.*;
	import gs.easing.*;
	import gs.events.TweenEvent;
	
	import org.aswing.*;
	import org.aswing.border.*;
	import org.aswing.border.EmptyBorder;
	import org.aswing.colorchooser.*;
	import org.aswing.dnd.*;
	import org.aswing.event.*;
	import org.aswing.ext.*;
	import org.aswing.geom.*;
	import org.aswing.plaf.*;
	import org.aswing.skinbuilder.SkinProgressBarBackground;
	import org.aswing.skinbuilder.SkinProgressBarForeground;
	
	/**
	 * MyPaneDate
	 */
	public class PanelDate extends JPanel{
		
		//members define
		private var panelButtons:JPanel;
		private var btnTerminate:JButton;
		private var btnBack:JButton;
		/**
		 * MyPaneDate Constructor
		 */
		public function PanelDate(){
			//component creation
			setSize(new IntDimension(800, 58));
			setPreferredSize(new IntDimension(800, 58));
			var layout0:CenterLayout = new CenterLayout();
			setLayout(layout0);
			
			panelButtons = new JPanel();
			panelButtons.setLocation(new IntPoint(200, 7));
			panelButtons.setSize(new IntDimension(400, 44));
			panelButtons.setPreferredSize(new IntDimension(400, 44));
			var layout1:FlowWrapLayout = new FlowWrapLayout();
			layout1.setPreferWidth(200);
			layout1.setAlignment(AsWingConstants.CENTER);
			layout1.setHgap(5);
			layout1.setVgap(0);
			panelButtons.setLayout(layout1);
			
			btnTerminate = new JButton();
			btnTerminate.setLocation(new IntPoint(231, 0));
			btnTerminate.setSize(new IntDimension(91, 44));
			btnTerminate.setPreferredSize(new IntDimension(91, 44));
			btnTerminate.setText("结束");
			
			btnBack = new JButton();
			btnBack.setLocation(new IntPoint(298, 0));
			btnBack.setSize(new IntDimension(91, 44));
			btnBack.setPreferredSize(new IntDimension(91, 44));
			btnBack.setText("返回");
			
			//component layoution
			append(panelButtons);
			
			panelButtons.append(btnTerminate);
			panelButtons.append(btnBack);
			
			//----------------------------------
			setImages();
			
		}
		public function setImages():void
		{
			//btnStealLove.addActionListener(onBtnStealLove);
			//btnCare.addActionListener(onBtnCare);
			//btnTerminate.addActionListener(onBtnTerminate);
			//btnBack.addActionListener(onBtnBack);
			setConstraints("South");
			//btnStealLove.setEnabled(false);
			//btnCare.setEnabled(false);
			//btnTerminate.setEnabled(false);
			
			btnTerminate.wrapSimpleButton(Client.getUIElement("btn_date_terminate") as SimpleButton);
			btnBack.wrapSimpleButton(Client.getUIElement("btn_date_return") as SimpleButton);
			btnTerminate.setText("");
			btnBack.setText("");
			//btnBack.setEnabled(false);
		}
		/*public function update():void
		{
			enterDate(_showSelf);
		}
		static public var _isInDate:Boolean = false;
		private var _showSelf:Boolean = true;
		private var _charLeft:ObjectCharPlayer = null;
		private var _charRight:ObjectCharPlayer = null;
		static private var _timeUpdate:Timer = null;
		public function enterDate(self:Boolean = true):void
		{
			_showSelf = self;
			trace("enterDate");
			if(PanelMain.getInstance().isInBattle)
			{
				trace("enterDate,_isInBattle");
				return;
			}
			//SceneDate.getInstance().clearup();
			var object:Object = _showSelf ? _objDateSelf : _objDateWatch;
			
			//if(object.m_nDateCharId == 0)
			//{
			//	if(!FramePair.isShowing())
			//		FramePair.show();
			//}
			//if(object.m_nDateCharId == 0)
			//{
			//	PanelMain.showInfoTimeLimit(_showSelf?"没有约会,你可以在好友界面,点击好友选择\"与TA约会\"":"对方没有约会");
			//	leaveDate();
			//	return;
			//}
			if(!_isInDate)
			{
				PanelMainHelp.getInstance().removeChild(SceneMain.getInstance());
				//PanelMainHelp.getInstance().addChildAt(SceneDate.getInstance(), 0);
				//PanelMainHelp.getInstance().remove(PanelMainHelp.getInstance().panelNorth);//.setVisible(true);
				PanelMainHelp.getInstance().remove(PanelMainHelp.getInstance().panelEast);
				PanelMainHelp.getInstance().remove(PanelMainHelp.getInstance().panelSouth);
				PanelMainHelp.getInstance().remove(PanelMainHelp.getInstance().panelWest);
				PanelMainHelp.getInstance().remove(PanelMainHelp.getInstance().panelCenter);
				
				PanelMainHelp.getInstance().append(PanelDateWest.getInstance());
				PanelMainHelp.getInstance().append(PanelDate.getInstance());
				PanelMainHelp.getInstance().append(PanelDateCenter.getInstance());
				PanelMainHelp.getInstance().append(PanelDateEast.getInstance());
				PanelMainHelp.getInstance().btn_hide.setEnabled(false);
				PanelMainHelp.getInstance().btn_battle.setEnabled(false);
				if(!FrameFriend.isShowing())
					FrameFriend.show();
				
				//addChildAt(PanelDate.getInstance(),0);
				SceneMain.getInstance().enable = false;
				SceneDate.getInstance().enable = true;
				_isInDate = true;
				SceneDate.getInstance().loadConfig('map'+2000);
			}
			else
			{
				SceneDate.getInstance().removeAllObjects();
				//SceneDate.getInstance().clearup();
				//SceneDate.getInstance().loadConfig('map'+2000);
			}
			panelButtons.removeAll();
			
			if(self)panelButtons.append(btnTerminate);
			panelButtons.append(btnBack);

			var obj:Object = !self?PanelDate._objDateWatch:PanelDate._objDateSelf;
			
			if(obj.m_nSelfCharId != 0)
			{
				var arrayEquips:Array = new Array();
				arrayEquips.push(Engine.assetCharPath + "char_"+ obj.m_nSelfGender + obj.m_nSelfEquipImage0 + '.swf');
				arrayEquips.push(Engine.assetCharPath + "char_"+ obj.m_nSelfGender + obj.m_nSelfEquipImage1 + '.swf');
				arrayEquips.push(Engine.assetCharPath + "char_"+ obj.m_nSelfGender + obj.m_nSelfEquipImage2 + '.swf');
				arrayEquips.push(Engine.assetCharPath + "char_"+ obj.m_nSelfGender + obj.m_nSelfEquipImage3 + '.swf');
				arrayEquips.push(Engine.assetCharPath + "char_"+ obj.m_nSelfGender + obj.m_nSelfEquipImage4 + '.swf');
				arrayEquips.push(Engine.assetCharPath + "char_"+ obj.m_nSelfGender + obj.m_nSelfEquipImage5 + '.swf');
				
				var charSelf:ObjectCharPlayer = SceneDate.getInstance().getObjectByCharId(obj.m_nSelfCharId);
				if(charSelf == null)
				{
					charSelf = SceneDate.getInstance().createCharPlayer(arrayEquips,"char_"+ obj.m_nSelfGender + '.swf',obj.m_szSelfCharName,new Point(345,500),obj.m_nSelfGender);
				}
				charSelf.charId = obj.m_nSelfCharId;
				//c.setLevel(CharInfo.m_nLevel);
				_charLeft = charSelf;
			}

			btnTerminate.setEnabled(obj.m_nDateCharId != 0);
			//btnCare.setEnabled(obj.m_nDateCharId != 0);
			//btnStealLove.setEnabled(obj.m_nDateCharId != 0);
			if(obj.m_nDateCharId != 0)
			{
				var arrayEquipsDate:Array = new Array();
				arrayEquipsDate.push(Engine.assetCharPath + "char_"+ obj.m_nDateGender + obj.m_nDateEquipImage0 + '.swf');
				arrayEquipsDate.push(Engine.assetCharPath + "char_"+ obj.m_nDateGender + obj.m_nDateEquipImage1 + '.swf');
				arrayEquipsDate.push(Engine.assetCharPath + "char_"+ obj.m_nDateGender + obj.m_nDateEquipImage2 + '.swf');
				arrayEquipsDate.push(Engine.assetCharPath + "char_"+ obj.m_nDateGender + obj.m_nDateEquipImage3 + '.swf');
				arrayEquipsDate.push(Engine.assetCharPath + "char_"+ obj.m_nDateGender + obj.m_nDateEquipImage4 + '.swf');
				arrayEquipsDate.push(Engine.assetCharPath + "char_"+ obj.m_nDateGender + obj.m_nDateEquipImage5 + '.swf');
				
				var charDate:ObjectCharPlayer = SceneDate.getInstance().getObjectByCharId(obj.m_nDateCharId);
				if(charDate == null)
				{
					charDate = SceneDate.getInstance().createCharPlayer(arrayEquipsDate,"char_"+ obj.m_nDateGender + '.swf',obj.m_szDateCharName,new Point(425,500),obj.m_nDateGender);
				}
				charDate.charId = obj.m_nDateCharId;
				charDate.direction = Directions.Left;
				_charRight = charDate;
				
			}
			addStealLoveIcon(_charLeft);
			addStealLoveIcon(_charRight);
			addCareIcon(_charLeft);
			addCareIcon(_charRight);
			//c.setLevel(CharInfo.m_nLevel);
			PanelDateWest.getInstance().setData(obj);
			PanelDateCenter.getInstance().setData(obj);
			
			if(_timeUpdate == null)
			{
				_timeUpdate = new Timer(1000);
				_timeUpdate.addEventListener(TimerEvent.TIMER,function():void
				{
					PanelDateCenter.update();
					
				});
				_timeUpdate.start();
			}
			if(object.m_nDateCharId == 0)
			{
				if(!FramePair.isShowing())
					FramePair.show();
			}
		}*/
		public function addStealLoveIcon(char:ObjectCharPlayer):void
		{
			
			//if(!canStealLove(char))
			//	return;
			
			//---------------------------------
			var pane:JPanel = new JPanel();
			var img_background:DisplayObject = Client.getUIElement("img_date_steal_love") as DisplayObject
			pane.setBackgroundDecorator(new AssetBackground(img_background));
			//setSizeWH(img_background.width,img_background.height);
			pane.setSize(new IntDimension(img_background.width, img_background.height));
			pane.setPreferredSize(new IntDimension(img_background.width, img_background.height));
			pane.setClipMasked(false);
			pane.x = (char.width - pane.width) / 2 - char.width/2;
			pane.y = -140-pane.height;
			pane.setToolTipText("点击调情");
			//char.addEventListener(MouseEvent.CLICK,onBtnStealLove);
			char.addChild(pane);
			//---------------------------------
		}
		public function addCareIcon(char:ObjectCharPlayer):void
		{
			
			//if(!canCare(char))
			//	return;
			
			//---------------------------------
			var pane:JPanel = new JPanel();
			var img_background:DisplayObject = Client.getUIElement("img_date_care") as DisplayObject
			pane.setBackgroundDecorator(new AssetBackground(img_background));
			//setSizeWH(img_background.width,img_background.height);
			pane.setSize(new IntDimension(img_background.width, img_background.height));
			pane.setPreferredSize(new IntDimension(img_background.width, img_background.height));
			pane.setClipMasked(false);
			pane.x = (char.width - pane.width) / 2 - char.width/2;
			pane.y = -140-pane.height;
			pane.setToolTipText("点击当电灯泡");
			//char.addEventListener(MouseEvent.CLICK,onBtnCare);
			char.addChild(pane);
			//---------------------------------
		}
		/*public function canStealLove(char:ObjectCharPlayer):Boolean
		{
			if(char == null || char.m_nGender == CharInfo.m_nGender)
				return false;
			
			var object:Object = _showSelf ? _objDateSelf : _objDateWatch;
			var objDateCSV:Object = Client.getInstance().GetDateCSV(object.m_nDateCSVId);
			
			if(_showSelf) //不能调情自己
				return false;
			//if(canCare())
			//	return false;
			if(object.m_nDateCharId == 0)
			{
				return false;
			}
			if(object.m_nDateStealLoveCount >= 3)
			{
				return false;
			}
			for (var i:int = 0; i < object.m_nDateStealLoveCount; i++)
			{
				if (object.m_arDateStealLoveId[i] == CharInfo.charId)
				{
					return false;
				}
			}

			if(object.m_nDateStartTime < objDateCSV.step_interval)
				return false;
			return true;
		}
		public function canCare(char:ObjectCharPlayer):Boolean
		{
			if(char == null || char.m_nGender != CharInfo.m_nGender)
				return false;
			
			var object:Object = _showSelf ? _objDateSelf : _objDateWatch;
			var objDateCSV:Object = Client.getInstance().GetDateCSV(object.m_nDateCSVId);
			
			if(object.m_nDateCharId == 0)
			{
				return false;
			}
			if(_showSelf) //不能给自己当电灯泡
				return false;
			
			if(object.m_nDateFriendCareCount >= 3)
			{
				return false;
			}
			
			for (var i:int = 0; i < object.m_nDateFriendCareCount; i++)
			{
				if (object.m_arDateFriendCareId[i] == CharInfo.charId)
				{
					return false;
				}
			}
			if(object.m_nDateStartTime < objDateCSV.step_interval)
				return false;
			return true;
		}
		
		public function leaveDate():void
		{
			trace("leaveDate");
			if(!_isInDate)
			{
				trace("leaveDate,!_isInDate");
				return;
			}
			
			PanelMainHelp.getInstance().removeChild(SceneDate.getInstance());
			PanelMainHelp.getInstance().addChildAt(SceneMain.getInstance(), 0);
			
			PanelMainHelp.getInstance().remove(PanelDate.getInstance());
			PanelMainHelp.getInstance().remove(PanelDateWest.getInstance());
			PanelMainHelp.getInstance().remove(PanelDateCenter.getInstance());
			PanelMainHelp.getInstance().remove(PanelDateEast.getInstance());
			
			//PanelMainHelp.getInstance().append(PanelMainHelp.getInstance().panelNorth);
			PanelMainHelp.getInstance().append(PanelMainHelp.getInstance().panelEast);
			PanelMainHelp.getInstance().append(PanelMainHelp.getInstance().panelSouth);
			PanelMainHelp.getInstance().append(PanelMainHelp.getInstance().panelWest);
			PanelMainHelp.getInstance().append(PanelMainHelp.getInstance().panelCenter);
			PanelMainHelp.getInstance().btn_hide.setEnabled(true);
			PanelMainHelp.getInstance().btn_battle.setEnabled(true);
			//removeChild(PanelDate.getInstance());
			//addChildAt(PanelMainHelp.getInstance(),0);
			SceneMain.getInstance().enable = true;
			SceneDate.getInstance().enable = false;
			SceneMain.getInstance().enterEffect();
			_isInDate = false;
			
			if(FrameFriend.isShowing())
			{
				FrameFriend.hide();
				FrameFriend.show();
			}
			
			if(!FrameTrends._firstShow)
			{
				if(!PanelMain.getInstance().isInBattle)
					FrameTrends.show();
				FrameTrends._firstShow = true;
			}
			SceneDate.getInstance().map.needUpdate = true;

			PanelMainHelp.getInstance().paintImmediately();
			SceneDate.getInstance().clearup();
			
		}
		*/
		/*protected function onBtnStealLove(e:Event):void
		{
			var obj:Object = !_showSelf?PanelDate._objDateWatch:PanelDate._objDateSelf;
			if(!_showSelf)
				Client.getInstance().sendPacketLogic(1304,[int(obj.m_nSelfCharId)]);
		}
		protected function onBtnCare(e:Event):void
		{
			var obj:Object = !_showSelf?PanelDate._objDateWatch:PanelDate._objDateSelf;
			Client.getInstance().sendPacketLogic(1305,[int(obj.m_nSelfCharId)]);
		}
		protected function onBtnTerminate(e:Event):void
		{
			var obj:Object = !_showSelf?PanelDate._objDateWatch:PanelDate._objDateSelf;
			if(_showSelf)
				Client.getInstance().sendPacketLogic(1303,[int(obj.m_nSelfCharId)]);
		}
		protected function onBtnBack(e:Event):void
		{
			PanelDate.getInstance().leaveDate();
		}
		*/
		/*public static function phDate_1300(e:PacketEvent):void
		{
			var msg:Array = e.data as Array;
			trace("phDate_1300", msg);
			var nIndex:uint = 0;
			_objDateSelf.m_nSelfCharId = msg[nIndex++];
			_objDateSelf.m_nSelfGender = msg[nIndex++];
			_objDateSelf.m_szSelfCharName = msg[nIndex++];
			_objDateSelf.m_nSelfEquipCount = msg[nIndex++];
			_objDateSelf.m_nSelfEquipImage0 = msg[nIndex++];
			_objDateSelf.m_nSelfEquipImage1 = msg[nIndex++];
			_objDateSelf.m_nSelfEquipImage2 = msg[nIndex++];
			_objDateSelf.m_nSelfEquipImage3 = msg[nIndex++];
			_objDateSelf.m_nSelfEquipImage4 = msg[nIndex++];
			_objDateSelf.m_nSelfEquipImage5 = msg[nIndex++];
			
			_objDateSelf.m_nDateCharId = msg[nIndex++];
			_objDateSelf.m_nDateGender = msg[nIndex++];
			_objDateSelf.m_szDateCharName = msg[nIndex++];
			_objDateSelf.m_nDateEquipCount = msg[nIndex++];
			_objDateSelf.m_nDateEquipImage0 = msg[nIndex++];
			_objDateSelf.m_nDateEquipImage1 = msg[nIndex++];
			_objDateSelf.m_nDateEquipImage2 = msg[nIndex++];
			_objDateSelf.m_nDateEquipImage3 = msg[nIndex++];
			_objDateSelf.m_nDateEquipImage4 = msg[nIndex++];
			_objDateSelf.m_nDateEquipImage5 = msg[nIndex++];
			
			_objDateSelf.m_nDateCSVId = msg[nIndex++];
			_objDateSelf.m_nDateStartTime = msg[nIndex++];
			_objDateSelf.m_nDateStep = msg[nIndex++];
			_objDateSelf.m_nDateLove = msg[nIndex++];
			
			_objDateSelf.m_nDateStealLoveCount = msg[nIndex++];
			if(_objDateSelf.m_arDateStealLoveId == null)
				_objDateSelf.m_arDateStealLoveId = new Array;
			_objDateSelf.m_arDateStealLoveId[0] = msg[nIndex++];
			_objDateSelf.m_arDateStealLoveId[1] = msg[nIndex++];
			_objDateSelf.m_arDateStealLoveId[2] = msg[nIndex++];
			
			_objDateSelf.m_nDateFriendCareCount = msg[nIndex++];
			if(_objDateSelf.m_arDateFriendCareId == null)
				_objDateSelf.m_arDateFriendCareId = new Array;
			_objDateSelf.m_arDateFriendCareId[0] = msg[nIndex++];
			_objDateSelf.m_arDateFriendCareId[1] = msg[nIndex++];
			_objDateSelf.m_arDateFriendCareId[2] = msg[nIndex++];
			
			_objDateSelf.m_nDateTrendsSize = msg[nIndex++];
			for(var i:int; i < _objDateSelf.m_nDateTrendsSize; i++)
			{
				if(_objDateSelf.m_arDateTrends == null)
					_objDateSelf.m_arDateTrends = new Array;
				_objDateSelf.m_arDateTrends[i] = msg[nIndex++];
				
			}
			
			//_bWatching = false;
			if(_isInDate)
				getInstance().enterDate();
		}
		public static function phDateAdd_1301(e:PacketEvent):void
		{
			var msg:Array = e.data as Array;
			trace("phDateAdd_1301", msg);
			var nIndex:uint = 0;
			getInstance().enterDate();
		}
		public static function phDateTerminate_1303(e:PacketEvent):void
		{
			var msg:Array = e.data as Array;
			trace("phDateTerminate_1303", msg);
			var nIndex:uint = 0;
			if(_isInDate)
				getInstance().enterDate();
		}
		static private var _objDateSelf:Object = new Object();
		static private var _objDateWatch:Object = new Object();
		//static public var _bWatching:Boolean = false;
		public static function phDateWatch_1302(e:PacketEvent):void
		{
			var msg:Array = e.data as Array;
			trace("phDateWatch_1302", msg);
			var nIndex:uint = 0;
			_objDateWatch.m_nSelfCharId = msg[nIndex++];
			_objDateWatch.m_nSelfGender = msg[nIndex++];
			_objDateWatch.m_szSelfCharName = msg[nIndex++];
			_objDateWatch.m_nSelfEquipCount = msg[nIndex++];
			_objDateWatch.m_nSelfEquipImage0 = msg[nIndex++];
			_objDateWatch.m_nSelfEquipImage1 = msg[nIndex++];
			_objDateWatch.m_nSelfEquipImage2 = msg[nIndex++];
			_objDateWatch.m_nSelfEquipImage3 = msg[nIndex++];
			_objDateWatch.m_nSelfEquipImage4 = msg[nIndex++];
			_objDateWatch.m_nSelfEquipImage5 = msg[nIndex++];
			
			_objDateWatch.m_nDateCharId = msg[nIndex++];
			_objDateWatch.m_nDateGender = msg[nIndex++];
			_objDateWatch.m_szDateCharName = msg[nIndex++];
			_objDateWatch.m_nDateEquipCount = msg[nIndex++];
			_objDateWatch.m_nDateEquipImage0 = msg[nIndex++];
			_objDateWatch.m_nDateEquipImage1 = msg[nIndex++];
			_objDateWatch.m_nDateEquipImage2 = msg[nIndex++];
			_objDateWatch.m_nDateEquipImage3 = msg[nIndex++];
			_objDateWatch.m_nDateEquipImage4 = msg[nIndex++];
			_objDateWatch.m_nDateEquipImage5 = msg[nIndex++];
			
			_objDateWatch.m_nDateCSVId = msg[nIndex++];
			_objDateWatch.m_nDateStartTime = msg[nIndex++];
			_objDateWatch.m_nDateStep = msg[nIndex++];
			_objDateWatch.m_nDateLove = msg[nIndex++];
			
			_objDateWatch.m_nDateStealLoveCount = msg[nIndex++];
			if(_objDateWatch.m_arDateStealLoveId == null)
				_objDateWatch.m_arDateStealLoveId = new Array;
			_objDateWatch.m_arDateStealLoveId[0] = msg[nIndex++];
			_objDateWatch.m_arDateStealLoveId[1] = msg[nIndex++];
			_objDateWatch.m_arDateStealLoveId[2] = msg[nIndex++];
			
			_objDateWatch.m_nDateFriendCareCount = msg[nIndex++];
			if(_objDateWatch.m_arDateFriendCareId == null)
				_objDateWatch.m_arDateFriendCareId = new Array;
			_objDateWatch.m_arDateFriendCareId[0] = msg[nIndex++];
			_objDateWatch.m_arDateFriendCareId[1] = msg[nIndex++];
			_objDateWatch.m_arDateFriendCareId[2] = msg[nIndex++];
			
			_objDateWatch.m_nDateTrendsSize = msg[nIndex++];
			for(var i:int; i < _objDateWatch.m_nDateTrendsSize; i++)
			{
				if(_objDateWatch.m_arDateTrends == null)
					_objDateWatch.m_arDateTrends = new Array;
				_objDateWatch.m_arDateTrends[i] = msg[nIndex++];
				
			}
			
			if(_objDateWatch.m_nSelfCharId == CharInfo.charId)
			{
				_objDateSelf = _objDateWatch;
				getInstance().enterDate(true);
				return;
			}
			getInstance().enterDate(false);
		}*/
		private static var _instance:* = null;
		public static function getInstance():PanelDate
		{
			if(_instance == null)
				_instance = new PanelDate();
			return _instance;
		}
	}
	
	
}

import org.aswing.*;
import org.aswing.border.*;
import org.aswing.geom.*;
import org.aswing.colorchooser.*;
import org.aswing.ext.*;

/**
 * MyPaneDateEast
 */
class PanelDateEast extends JPanel{
	
	//members define
	
	/**
	 * MyPaneDateEast Constructor
	 */
	public function PanelDateEast(){
		//component creation
		setEnabled(false);
		setSize(new IntDimension(190, 422));
		setPreferredSize(new IntDimension(190, 422));
		setConstraints("East");
		
		//component layoution
	}
	
	private static var _instance:* = null;
	public static function getInstance():PanelDateEast
	{
		if(_instance == null)
			_instance = new PanelDateEast();
		return _instance;
	}
	
	//_________getters_________
	
	
}